package string;

public class CharAtDemo {
    public static void main(String[] args) {
        String str = "静夜思，举头望明月，低头思故乡";
        System.out.println(str.charAt(0));
        System.out.println(str.charAt(4));
        System.out.println(str.charAt(7));
        System.out.println(str.charAt(11));
        System.out.println(str.charAt(str.length()-1));
    }
}
